﻿namespace RVNetworkLib
{
    public enum PacketType : ushort
    {
        INVALID         = 0x0,
        ACK             = 0x1,
        NAK             = 0x2,
        ACCEPT          = 0x3,
        REJECT          = 0x4,
        PING            = 0x5,
        REGISTER        = 0x6,
        LOGIN           = 0x7,
        LOGOUT          = 0x8,
        QUERY_ROOM_LIST = 0x9,
        CREATE_ROOM     = 0xA,
        JOIN_ROOM       = 0xB,
        LEAVE_ROOM      = 0xC,
        UPDATE_STATE    = 0xD,
        START_GAME      = 0xE,
        START_PLAY      = 0xF,
        CHAT            = 0x10,
        AUDIO           = 0x11,
        VIDEO           = 0x12,
        UPDATE_ROOM_STATUS = 0x13,

        // Message for lan game only
        LQUERY_ROOM_LIST    = 0x100,
        LQUERY_ROOM_LIST_R  = LQUERY_ROOM_LIST | 0x8000,

        // payload 'UserName'
        LJOIN_ROOM          = 0x101,
    }
}
